<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //
        Schema::create('videos', function (Blueprint $table) {
            $table->bigIncrements('id')->comment('主键id');
            $table->bigInteger('source_id')->comment('源数据id');
            $table->string('title',255)->nullable()->comment('视频标题');
            $table->string('userName',100)->nullable()->comment('视频发表者');
            $table->string('userPic',255)->nullable()->comment('发表者头像');
            $table->string('coverUrl',255)->nullable()->comment('视频封面图');
            $table->string('playUrl',255)->nullable()->comment('视频文件url');
            $table->string('duration',100)->nullable()->comment('视频长度');
            $table->timestamps();

        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
};
